import java.util.Arrays;
import java.util.Collections;

/**
 * Created with IntelliJ IDEA.
 * Description:造轮子  实现ArrayList
 * User: Admin
 * Date: 2022-06-08
 * Time: 16:25
 */
public class Main {
    public static void main(String[] args) {
        MyArrayList<Integer> myArrayList = new MyArrayList<>();
        myArrayList.add(15);
        myArrayList.add(15);
        myArrayList.add(15);
        myArrayList.add(15);
        myArrayList.remove(new Integer(15));
        System.out.println(Arrays.toString(myArrayList.elem));
    }
}
